<?php

namespace app\admin\model;

use think\Model;

class Company extends Model
{
    // 表名
    protected $name = 'company';

    /**
     * 获取企业列表
     * @param array $where
     * @return array
     */
    public function companyList($where = []){
        $companylist = $this->where($where)->column('name', 'id');
        return $companylist;
    }
    
}
